<template>
  <div>
    <div class="operate_det">
      <div class="operate_list">
        <eagle-row class="operate_row_first">
          <eagle-col span="2">#</eagle-col>
          <eagle-col span="5">层级说明</eagle-col>
          <eagle-col span="12">操作说明</eagle-col>
          <eagle-col span="5">操作签名</eagle-col>
        </eagle-row>
        <eagle-row
          v-for="(item, index) in list"
          :key="index"
          class="operate_row"
        >
          <eagle-col span="2">{{ index + 1 }}</eagle-col>
          <eagle-col span="5">{{ item.LevelName }} </eagle-col>
          <eagle-col span="10">{{ item.OperateContent }} </eagle-col>
          <eagle-col span="7">
            <eagle-image-preview
              :images="item.OperateSignAttach"
            ></eagle-image-preview>
          </eagle-col>
          <!-- <eagle-col span="5">
            <eagle-input name="Attachs" readonly>
              <template #input>
                <eagle-image-preview
                  :images="item.OperateSignAttach"
                ></eagle-image-preview>
              </template>
            </eagle-input>
          </eagle-col> -->

          <!-- <eagle-col span="5">{{ item.OperateSignAttach }} </eagle-col> -->
        </eagle-row>
      </div>
    </div>
  </div>
</template>

<script>
import { getHistory } from "@/api/commonAudit";
export default {
  components: {},
  data() {
    return {
      id: this.$route.query.id,
      opController: this.$route.query.opController,
      operate: this.$route.query.operate,
      list: [],
    };
  },

  created() {
    this.geDetail();
  },
  methods: {
    // 获取详情
    // geDetail() {
    //   getHistory({
    //     recordID: this.id,
    //     opController: this.opController,
    //     operate: this.operate,
    //   }).then((res) => {
    //     this.list = res.data;
    //   });
    // },
    geDetail() {
      
      let _this = this;
      let params = {
        recordID: _this.id,
        opController: _this.opController,
        operate: _this.operate,
      };
      _this.$axios
        .get("/CommonAudit/GetAuditHistoryByRecord", { params: params })
        .then((res) => {
          _this.list = res.data;
        });
    },
  },
};
</script>

<style lang="less">
.operate_det {
  background-color: #fff;
  padding: 10px;
  .operate_list {
    font-size: 12px;
    border: 1px solid #e8f1f8;
    .operate_row_first {
      padding: 10px;
      background-color: #e8f1f8;
      border-bottom: 1px solid #e8f1f8;
      margin-bottom: 10px;
    }
    .operate_row {
      padding: 10px;
      border-bottom: 1px solid #e8f1f8;
      line-height: 16px;
    }
  }
}
</style>
